﻿@model IEnumerable<Domain.Entities.WebManageMenus>
@{
    ViewBag.Title = "Index";
}
<h2>
    Index</h2>
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
        </th>
        <th>
            MenuID
        </th>
        <th>
            MenuName
        </th>
        <th>
            ParentID
        </th>
        <th>
            MenuLevel
        </th>
        <th>
            LinkUrl
        </th>
        <th>
            About
        </th>
        <th>
            SortNumber
        </th>
        <th>
            UpdateDate
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.MenuID }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.MenuID })
            </td>
            <td>
                @item.MenuID
            </td>
            <td>
                @item.MenuName
            </td>
            <td>
                @item.ParentID
            </td>
            <td>
                @item.MenuLevel
            </td>
            <td>
                @item.LinkUrl
            </td>
            <td>
                @item.About
            </td>
            <td>
                @item.SortNumber
            </td>
            <td>
                @String.Format("{0:g}", item.UpdateDate)
            </td>
        </tr>
    }
</table>
